package chenshuaiwen.domain.vo;

import chenshuaiwen.domain.enums.RoleDateScope;

import java.time.LocalDateTime;

/**
 * 视觉对象类型-角色
 *
 * @author 陈帅闻
 * @since 2025/4/26 10:44
 */
public class RoleVo extends BaseVo{

    /**
     * 角色名称
     */
    public String name;

    /**
     * 角色数据访问范围
     */
    public RoleDateScope dataScope;

    public RoleVo() {
    }

    public RoleVo(Integer id, LocalDateTime createAt, LocalDateTime updateAt, String name, RoleDateScope dataScope) {
        super(id, createAt, updateAt);
        this.name = name;
        this.dataScope = dataScope;
    }

    @Override
    public String toString() {
        return String.format("ID：%d，名称：%s，数据访问范围：%s", id, name, dataScope);
    }
}
